<?php

$arr_domain = explode(".", $_SERVER['SERVER_NAME']);
$len = count($arr_domain);
$domain = $arr_domain[$len-2];
if($domain == "biuyum"){
	for($i = 1; $i < 15; $i++){
		$num += mt_rand(999, 9999);
	}
//echo "biuyum";
}else{
//	echo "qiqiao";
}

echo "<pre>";
print_r($_SERVER);
print_r($len);
echo "</pre>";

echo $_SERVER['REMOTE_ADDR'];
if($_SERVER['REMOTE_ADDR'] == '127.0.0.1'){
	echo "本地";
}else{
	echo "线上";
}
?>